﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Test
{
    class Program
    {
        static void Main(string[] args)
        {
            Huu huu = new Huu();


            int i = 12;
            var num = i;
            Console.WriteLine(i);
            huu.Hipoo(ref i);//实参

            if (num == i)
            {
                Console.WriteLine("i的值没有发生改变,i={0}",i);
            }
            else
            {
                Console.WriteLine("i的值发生了改变，i={0}",i);
            }


            int ii = 12;
            var num2 = i;
            Console.WriteLine(i);
            huu.Hiopo(out ii);//实参

            if (num2 == i)
            {
                Console.WriteLine("ii的值没有发生改变,ii={0}", ii);
            }
            else
            {
                Console.WriteLine("ii的值发生了改变，ii={0}", ii);
            }


        }

    }
}